package xin.nick.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;
import lombok.EqualsAndHashCode;
import xin.nick.common.mbp.entity.BaseEntity;

/**
 * <p>
 * 系统-权限
 * </p>
 *
 * @author Nick
 * @since 2023-09-21
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("system_authority")
public class SystemAuthority extends BaseEntity {

    @TableId(value = "authority_id", type = IdType.AUTO)
    private Long authorityId;

    @TableField("authority_key")
    private String authorityKey;

    @TableField("parent_id")
    private Long parentId;

    @TableField("authority_path")
    private String authorityPath;

    @TableField("menu_name")
    private String menuName;

    @TableField("menu_type")
    private String menuType;

    @TableField("menu_meta")
    private String menuMeta;

    // 越小越靠前
    @TableField("sort")
    private Integer sort;

    @TableField("remark")
    private String remark;

    @TableField("version")
    @Version
    private Long version;

    @TableField("disabled")
    private Boolean disabled;

    @TableField("deleted")
    @TableLogic
    private Boolean deleted;


}
